//Kappy ; While Loop program
//While.cpp : Shows how the while loop is used

#include <iostream>

using namespace std;

int fib(int x) 
{
    if (x == 0)
        return 0;

    if (x == 1)
        return 1;

    return fib(x-1)+fib(x-2);
}

void main()
{
	int x = 3; // one space in memory 
	int* arr= new int[x]; // 3 spaces in memory
						  // dynamic memory spaces
						  // * creates the pointer
	arr[0] = 0; 
	arr[1] = 1;
	arr[2] = 2;
	
	cout << arr[0] << arr[1] << arr[2] << endl;
	cout << *arr << endl;
	system("pause");
}

/*
double amountOfSyrup, numOfWaffles;
	amountOfSyrup = 2.6;

	cout << "How many waffles do you have? ";
	cin >> numOfWaffles;
	cout << endl;

	while(amountOfSyrup > 0 && numOfWaffles > 0)
	{
		numOfWaffles = numOfWaffles - 0.25;
		amountOfSyrup = amountOfSyrup - 0.125;
	}

	if(amountOfSyrup < 0)
	{
		cout << "You ran out of syrup!" << endl;
	}
	else if(numOfWaffles == 0)
	{
		cout << "You ran out of waffles!" << endl;
	}

	system("PAUSE");
*/
